#ifndef __MEMMAP_H__
#define __MEMMAP_H__

/* confirm with CONFIG_SYS_RESVIONSZ & CONFIG_SYS_RESVOSSZ by uboot defconfig */
/* H26X_BITSTREAM_ADDR = CONFIG_SYS_BOOTMAPSZ - CONFIG_SYS_RESVIONSZ - CONFIG_SYS_RESVOSSZ*/
#ifdef LINUX_BSP_64MB
#define H26X_BITSTREAM_ADDR         (0x82700000)
#define H26X_BITSTREAM_SIZE         (0x00200000)
#define H26X_ENC_BUFF_ADDR          (H26X_BITSTREAM_ADDR + H26X_BITSTREAM_SIZE)
#define H26X_ENC_BUFF_SIZE          (0x00000000)

#define ISP_MEM_BASE_ADDR           (H26X_ENC_BUFF_ADDR + H26X_ENC_BUFF_SIZE)
#define ISP_MEM_BASE_SIZE           (0x00A00000)
#elif defined (LINUX_BSP_128MB)
#define H26X_BITSTREAM_ADDR         (0x83C80000)
#define H26X_BITSTREAM_SIZE         (0x00200000)
#define H26X_ENC_BUFF_ADDR          (H26X_BITSTREAM_ADDR + H26X_BITSTREAM_SIZE)
#define H26X_ENC_BUFF_SIZE          (0x00000000)

#define ISP_MEM_BASE_ADDR           (H26X_ENC_BUFF_ADDR + H26X_ENC_BUFF_SIZE)
#define ISP_MEM_BASE_SIZE           (0x00A00000)
#else
#define H26X_BITSTREAM_ADDR         (0x00000000)
#define H26X_BITSTREAM_SIZE         (0x00000000)
#define H26X_ENC_BUFF_ADDR          (H26X_BITSTREAM_ADDR + H26X_BITSTREAM_SIZE)
#define H26X_ENC_BUFF_SIZE          (0x00000000)

#define ISP_MEM_BASE_ADDR           (H26X_ENC_BUFF_ADDR + H26X_ENC_BUFF_SIZE)
#define ISP_MEM_BASE_SIZE           (0x00000000)
#endif


#endif // end of __MEMMAP_H__
